﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data.SQLite;
using System.Data;

/*
 * Author:Conis
 * Date:
 * Description:Sql语句中的Between单元
 */
namespace Conis.Squirrel.SqlBuilder.SQLite
{
    /// <summary>
    /// Sql语句中的Between单元
    /// </summary>
    /// <typeparam name="T"></typeparam>
    public class BetweenUnit<T>: BaseBetweenUnit<T>
    {
        protected internal BetweenUnit(Connector connector, string fieldName, T startValue, T endValue) :
            base(connector, fieldName, startValue, endValue) { }
        /// <summary>
        /// 创建一个参数
        /// </summary>
        /// <param name="key"></param>
        /// <param name="value"></param>
        /// <returns></returns>
        protected override IDataParameter CreateParameter(string key, object value)
        {
            return new SQLiteParameter(key, value);
        }
    }
}
